package com.tianqi.code.lottery.domain.strategy.service.algorithm.Impl;

import com.tianqi.code.lottery.domain.strategy.service.algorithm.AbstractHashDrawAlgorithm;
import org.springframework.stereotype.Service;

@Service("averageHashDrawAlgorithm")
public class AverageHashDrawAlgorithm extends AbstractHashDrawAlgorithm {
    // 数组初始化长度
    private final int RATE_TUPLE_LENGTH = 100;

    @Override
    protected int getRateTupleLength() {
        return RATE_TUPLE_LENGTH;
    }

    @Override
    protected int getIndex(int i) {
        return i;
    }
}
